<?php

class Admin_model extends CI_Model{

	function __construct(){
		parent::__construct();
	}
	
	function cek_login($username, $password){
	
		$this->db->select('*');
		$this->db->where('username', $username);
		$this->db->where('password', $password);
		
		$query = $this->db->get('admins');
		
		if($query->num_rows() > 0){
			return $query->row_array();
		}
	}
}